/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author ChArFaTo
 */
@Entity
@Table(name = "matriculafinanciera", catalog = "proyectosw", schema = "")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "MatriculafinancieraEJB.findAll", query = "SELECT m FROM MatriculafinancieraEJB m"),
    @NamedQuery(name = "MatriculafinancieraEJB.findByMFid", query = "SELECT m FROM MatriculafinancieraEJB m WHERE m.mFid = :mFid"),
    @NamedQuery(name = "MatriculafinancieraEJB.findByMFseguroestudiantil", query = "SELECT m FROM MatriculafinancieraEJB m WHERE m.mFseguroestudiantil = :mFseguroestudiantil"),
    @NamedQuery(name = "MatriculafinancieraEJB.findByMFderechomatricula", query = "SELECT m FROM MatriculafinancieraEJB m WHERE m.mFderechomatricula = :mFderechomatricula"),
    @NamedQuery(name = "MatriculafinancieraEJB.findByMFrevalidacioncarnet", query = "SELECT m FROM MatriculafinancieraEJB m WHERE m.mFrevalidacioncarnet = :mFrevalidacioncarnet"),
    @NamedQuery(name = "MatriculafinancieraEJB.findByMFderechocomplementario", query = "SELECT m FROM MatriculafinancieraEJB m WHERE m.mFderechocomplementario = :mFderechocomplementario"),
    @NamedQuery(name = "MatriculafinancieraEJB.findByMFserviciosedesocial", query = "SELECT m FROM MatriculafinancieraEJB m WHERE m.mFserviciosedesocial = :mFserviciosedesocial"),
    @NamedQuery(name = "MatriculafinancieraEJB.findByMFdescuentovotacion", query = "SELECT m FROM MatriculafinancieraEJB m WHERE m.mFdescuentovotacion = :mFdescuentovotacion")})
public class MatriculafinancieraEJB implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(nullable = false)
    private Integer mFid;
    @Basic(optional = false)
    @NotNull
    @Column(name = "MFseguro_estudiantil", nullable = false)
    private double mFseguroestudiantil;
    @Basic(optional = false)
    @NotNull
    @Column(name = "MFderecho_matricula", nullable = false)
    private double mFderechomatricula;
    @Basic(optional = false)
    @NotNull
    @Column(name = "MFrevalidacion_carnet", nullable = false)
    private double mFrevalidacioncarnet;
    @Basic(optional = false)
    @NotNull
    @Column(name = "MFderecho_complementario", nullable = false)
    private double mFderechocomplementario;
    @Basic(optional = false)
    @NotNull
    @Column(name = "MFservicio_sedesocial", nullable = false)
    private double mFserviciosedesocial;
    @Basic(optional = false)
    @NotNull
    @Column(name = "MFdescuento_votacion", nullable = false)
    private double mFdescuentovotacion;
    @JoinColumn(name = "EstudianteECodigo", referencedColumnName = "ECodigo")
    @ManyToOne
    private EstudianteEJB estudianteECodigo;

    public MatriculafinancieraEJB() {
    }

    public MatriculafinancieraEJB(Integer mFid) {
        this.mFid = mFid;
    }

    public MatriculafinancieraEJB(Integer mFid, double mFseguroestudiantil, double mFderechomatricula, double mFrevalidacioncarnet, double mFderechocomplementario, double mFserviciosedesocial, double mFdescuentovotacion) {
        this.mFid = mFid;
        this.mFseguroestudiantil = mFseguroestudiantil;
        this.mFderechomatricula = mFderechomatricula;
        this.mFrevalidacioncarnet = mFrevalidacioncarnet;
        this.mFderechocomplementario = mFderechocomplementario;
        this.mFserviciosedesocial = mFserviciosedesocial;
        this.mFdescuentovotacion = mFdescuentovotacion;
    }

    public Integer getMFid() {
        return mFid;
    }

    public void setMFid(Integer mFid) {
        this.mFid = mFid;
    }

    public double getMFseguroestudiantil() {
        return mFseguroestudiantil;
    }

    public void setMFseguroestudiantil(double mFseguroestudiantil) {
        this.mFseguroestudiantil = mFseguroestudiantil;
    }

    public double getMFderechomatricula() {
        return mFderechomatricula;
    }

    public void setMFderechomatricula(double mFderechomatricula) {
        this.mFderechomatricula = mFderechomatricula;
    }

    public double getMFrevalidacioncarnet() {
        return mFrevalidacioncarnet;
    }

    public void setMFrevalidacioncarnet(double mFrevalidacioncarnet) {
        this.mFrevalidacioncarnet = mFrevalidacioncarnet;
    }

    public double getMFderechocomplementario() {
        return mFderechocomplementario;
    }

    public void setMFderechocomplementario(double mFderechocomplementario) {
        this.mFderechocomplementario = mFderechocomplementario;
    }

    public double getMFserviciosedesocial() {
        return mFserviciosedesocial;
    }

    public void setMFserviciosedesocial(double mFserviciosedesocial) {
        this.mFserviciosedesocial = mFserviciosedesocial;
    }

    public double getMFdescuentovotacion() {
        return mFdescuentovotacion;
    }

    public void setMFdescuentovotacion(double mFdescuentovotacion) {
        this.mFdescuentovotacion = mFdescuentovotacion;
    }

    public EstudianteEJB getEstudianteECodigo() {
        return estudianteECodigo;
    }

    public void setEstudianteECodigo(EstudianteEJB estudianteECodigo) {
        this.estudianteECodigo = estudianteECodigo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (mFid != null ? mFid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof MatriculafinancieraEJB)) {
            return false;
        }
        MatriculafinancieraEJB other = (MatriculafinancieraEJB) object;
        if ((this.mFid == null && other.mFid != null) || (this.mFid != null && !this.mFid.equals(other.mFid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Modelo.MatriculafinancieraEJB[ mFid=" + mFid + " ]";
    }
    
}
